Skip to content

fix(@angular/cli): ignore system files in assets - #8549

Merged
hansl merged 1 commit into
angular:masterfrom
cyrilletuzi:patch-3
Nov 20, 2017
Merged

fix(@angular/cli): ignore system files in assets#8549
hansl merged 1 commit into
angular:masterfrom
cyrilletuzi:patch-3

Conversation

@cyrilletuzi

Copy link
Copy Markdown
Contributor

Replaces angular/devkit#263

When copying the assets during build, the CLI must not include system files (e.g. .DS_Store and Thumbs.db).

It is very important for service worker to work : if presents, these files will be included in the service worker manifest as files to cache (according to this schematic). But such files may (and should) not be deployed to the server. Then on the client, files will be missing, then the service worker installation will fail and so all the offline feature won't work.

@hansl @filipesilva @Brocco @alxhub

Replaces angular/devkit#263

When copying the assets during build, the CLI must not include system files (e.g. `.DS_Store` and `Thumbs.db`).

It is very important for service worker to work : if presents, these files will be included in the service worker manifest as files to cache. But such files may (and should) not be deployed to the server. Then on the client, files will be missing, then the service worker installation will fail and so all the offline feature won't work.

@filipesilva filipesilva left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @alxhub can you take a look as well please?

@filipesilva filipesilva self-assigned this Nov 20, 2017
@alxhub

alxhub commented Nov 20, 2017

Copy link
Copy Markdown
Member

@filipesilva LGTM but this is legacy SW code anyway, and doesn't affect the 5.0.0 worker.

@alxhub
alxhub self-requested a review November 20, 2017 18:16
@cyrilletuzi

Copy link
Copy Markdown
Contributor Author

@alxhub Why is this legacy ? Is the test already done in @angular/service-worker ? Couldn't find it.

@hansl
hansl merged commit c27c7c9 into angular:master Nov 20, 2017
@cyrilletuzi
cyrilletuzi deleted the patch-3 branch December 7, 2017 19:38
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants